package com.jblog.core.service.account;

import java.util.List;

import com.jblog.core.model.account.Account;
import com.jblog.core.model.account.param.AccountParam;

public interface AccountService {

    public Account findById(Long id);

    public Account findByName(String s);

    public Account findByEmail(String s);

    public Account findByActiveCode(String s);
    
    public List<Account> findByParam(AccountParam p);
    
    public Long count(AccountParam p);
    
    public Account login(Account e);

    public void enDisable(Account e, boolean able);

    public void save(Account e);

    public void update(Account e);

    public void delete(Long id);
}
